package org.heydr.data;

import java.util.List;

import org.heydr.entity.Info;
import org.heydr.entity.Site;
import org.heydr.entity.Url;

/**
 * pump data into taskpool
 * @author carlos.tse
 *
 */
public abstract class ResourceEngine {
	
	/**
	 * <strong>Description</strong>:get available sites from database
	 * @return
	 * @return List<Site>
	 * @author chok.leung
	 * 2013-6-4
	 */
	public abstract List<Site> availableSites();
	
	/**
	 * <strong>Description</strong>:store urls which has been crawl down from url list page
	 * @param urls
	 * @return void
	 * @author chok.leung
	 * 2013-6-4
	 */
	public abstract void storeUrls(List<Url> urls);
	
	public abstract void storeInfo(Info info);

	public abstract List<Url> availableUrls(int size);
	
	public abstract void finishedTasks(List<Url> urls);
	
	
}